package org.oop1.jicheng;

public class Person {
	private String name;
	private int age;
	public Person(){
		System.out.println("这是people的无参构造方法！！！");
	}
	public Person(String na,int ag){
		this.name = na;
		this.age = ag;
		System.out.println("这是people的有参构造方法！！！");
	}
	public void setName(String name){
		this.name = name;
	}
	public String getName(){
		return name;
	}
	public void setAge(int age){
		this.age = age;
	}
	public int getAge(){
		return age;
	}
}
